#include <stdio.h>
#include <string.h>
using namespace std;
void daxiao(char *a)
{
	int i = 0;
	while(a[i]!='\0')
	{
		if (a[i] >= 96)
		{
			a[i] = a[i] - 32;
		}
		else
		{
			a[i] = a[i] + 32;
		}
		i++;
	}
}
void nixu(char*a)
{
	int j = strlen(a)-1;
	int i=0;
	char c;
	while(i<j){
		c = a[i];
		a[i] = a[j];
		a[j] = c;
		i++;
		j--;
	}
}
void jiasan(char *a)
{
	int i=0;
	while(a[i]!='\0')
	{
		if (a[i] >= 'a'&&a[i] <= 'z') {
			if (a[i] >= 'x'&&a[i] <= 'z')
			{
			    a[i] = (a[i] - 'a' - 23) % 26 + 'a';
			}
			else
			{
				a[i] = a[i] + 3;	
			}
		}
		else
		{
			if (a[i] >= 'X'&&a[i] <= 'Z')
			{
				a[i] = (a[i] - 'A' - 23) % 26 + 'A';
			}
			else
			{
				a[i] = a[i] + 3;
			}
		}
		i++;
	}
}
int main()
{
	char a[50] = "";
	gets(a);
	jiasan(a);
	nixu(a);
	daxiao(a);
    puts(a);
    return 0;
}

